package com.palfund.secondfragment;


import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


/**
 * A simple {@link Fragment} subclass.
 */
public class SecondFragment extends Fragment {


    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        Log.i("SecondFragment", "---onAttach()--->activity");
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.i("SecondFragment", "---onCreate()--->");
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle
            savedInstanceState) {
        Log.i("SecondFragment", "---onCreateView()--->");
        return inflater.inflate(R.layout.fragment_second, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        Log.i("SecondFragment", "---onViewCreated()--->");
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        Log.i("SecondFragment", "---onActivityCreated()--->");
    }

    @Override
    public void onStart() {
        super.onStart();
        Log.i("SecondFragment", "---onStart()--->");
    }

    @Override
    public void onResume() {
        super.onResume();
        Log.i("SecondFragment", "---onResume()--->");
    }

    @Override
    public void onPause() {
        super.onPause();
        Log.i("SecondFragment", "---onPause()--->");
    }

    @Override
    public void onStop() {
        super.onStop();
        Log.i("SecondFragment", "---onStop()--->");
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        Log.i("SecondFragment", "---onDestroyView()--->");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.i("SecondFragment", "---onDestroy()--->");
    }

    @Override
    public void onDetach() {
        super.onDetach();
        Log.i("SecondFragment", "---onDetach()--->");
    }

    public SecondFragment() {
        Log.i("SecondFragment", "---SecondFragment()--->");
    }


    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        Log.i("SecondFragment", "---onAttach()--->context");
    }

}
